package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TAgeMapper;
import com.ruoyi.system.domain.TAge;
import com.ruoyi.system.service.ITAgeService;

/**
 * ageService业务层处理
 * 
 * @author SJQ
 * @date 2024-10-30
 */
@Service
public class TAgeServiceImpl implements ITAgeService 
{
    @Autowired
    private TAgeMapper tAgeMapper;

    /**
     * 查询age
     * 
     * @param id age主键
     * @return age
     */
    @Override
    public TAge selectTAgeById(Long id)
    {
        return tAgeMapper.selectTAgeById(id);
    }

    /**
     * 查询age列表
     * 
     * @param tAge age
     * @return age
     */
    @Override
    public List<TAge> selectTAgeList(TAge tAge)
    {
        return tAgeMapper.selectTAgeList(tAge);
    }

    /**
     * 新增age
     * 
     * @param tAge age
     * @return 结果
     */
    @Override
    public int insertTAge(TAge tAge)
    {
        return tAgeMapper.insertTAge(tAge);
    }

    /**
     * 修改age
     * 
     * @param tAge age
     * @return 结果
     */
    @Override
    public int updateTAge(TAge tAge)
    {
        return tAgeMapper.updateTAge(tAge);
    }

    /**
     * 批量删除age
     * 
     * @param ids 需要删除的age主键
     * @return 结果
     */
    @Override
    public int deleteTAgeByIds(Long[] ids)
    {
        return tAgeMapper.deleteTAgeByIds(ids);
    }

    /**
     * 删除age信息
     * 
     * @param id age主键
     * @return 结果
     */
    @Override
    public int deleteTAgeById(Long id)
    {
        return tAgeMapper.deleteTAgeById(id);
    }
}
